Sorting a REALLY BIG delimited text file in UNIX / VMS [closed]
Posted
by
gunbuster363
on Programmers
See other posts from Programmers
or by gunbuster363
Published on 2011-02-09T07:34:06Z
Indexed on
2011/02/09
15:33 UTC
Read the original article
Hit count: 281
sorting
Hi everyone,
I am going to sort a REALLY BIG delimited text file, say 250Mb (or a bunch of files of more or less than 250Mb) . It have 37 fields, and I need to sort it by 5 fields, for example 1st, 4th, 5th, 6th 7th fields. Under Unix / VMS, do I have a good option to do this FAST? I can write COBOL program.
Now I am trying to sort them using the below command, but it already run for a long time and just not going to finished.
Thank you.
The command I used: time sort -t ',' -o sorted.txt +0 -1 +4 -5 +5 -6 +6 -7 +22 -23 *.DAT_gprscdr_ftpd
© Programmers or respective owner